package org.cx.comparator.spring;

import org.cx.comparator.compare.mode.impl.AddressComparatorMode;
import org.cx.comparator.compare.mode.impl.DefaultComparatorMode;
import org.cx.comparator.compare.mode.impl.ExpressionComparatorMode;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


@Configuration
public class ComparatorAutoConfiguration {

    @Bean
    public ComparatorScannerConfigurer comparatorScannerConfigurer(){
        return new ComparatorScannerConfigurer();
    }

    @Bean
    public AddressComparatorMode addressComparatorMode(){
        return new AddressComparatorMode();
    }

    @Bean
    public DefaultComparatorMode defaultComparatorMode(){
        return new DefaultComparatorMode();
    }

    @Bean
    public ExpressionComparatorMode expressionComparatorMode(){
        return new ExpressionComparatorMode();
    }
}
